package com.xinghen.rms;

import com.xinghen.rms.meta.ApplicationMeta;
import com.xinghen.rms.meta.ServiceMeta;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;
import java.util.Map;

/**
 * @author xinghen
 * @ClassName: RmsProperties
 * @Package: com.xinghen.rms
 * @Description TODO
 * @create 2017-12-08 11:10
 */
@Configuration
@ConfigurationProperties(prefix = "com.xinghen.rms.properties")
@Data
public class RmsProperties implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 应用清单(应用名称 : 应用地址)
     */
    private Map<String, ApplicationMeta> application;

    /**
     * 服务路径(服务编号 : 服务元数据)
     */
    private Map<String, ServiceMeta> service;

}
